package com.boco.blch.analysiser.compliance.HW.data;

import com.boco.blch.analysiser.compliance.ComplianceResolved;

/**
 * hdfs定期更新版本或厂商漏洞补丁安全基线要求项     【控制节点】+【数据节点】
 * @author admin
 *
 */
public class BOCO_Hdfs_VersionManage_CycleUpdate implements ComplianceResolved {

	private final static String version = "version=3.0.0";
	
	@Override
	public int realEchoResolved(String echoResult) {
		int result = FAILED;
		if(echoResult != null && echoResult.length() > 0){
			if(echoResult.indexOf(" ") != -1){
				echoResult = echoResult.replace(" ", "");
			}
			if(echoResult.contains(version)){
				result = SUCCESS;
			}
		}
		return result;
	}
}
